package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {
    //保存的扩展业务
    void saveWithFlavors(DishDto dishDto);
    //分页业务扩展接口
    Page<DishDto> selectPageByName(Integer page,Integer pageSize,String name);
    //修改的业务扩展接口
    DishDto selectByIdWithFlavors(Long id);
    //更新菜品信息业务扩展接口
    void updateWithFlavors(DishDto dishDto);

    List<DishDto> listWithFlavors(Dish dish);

}
